package clinicapoo.factory;

import clinicapoo.dao.BaseDAO;
import clinicapoo.dao.MedicoDAO;
//...................
import clinicapoo.dao.PacienteDAO;
import javax.persistence.EntityManager;

/**
 * Factory para instâncias de acesso a dados
 * @author fmontezuma
 */
public class DAO
{
	public static MedicoDAO medico =
			(MedicoDAO) SingletonFactory.getInstance(MedicoDAO.class);

        // instancia da classe
        public static PacienteDAO paciente =
			(PacienteDAO) SingletonFactory.getInstance(PacienteDAO.class);

	public static EntityManager startEntityManager()
	{
		return BaseDAO.getEntityManager();
	}
}
